package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 luntai_user
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class LuntaiUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户id */
    private Integer id;

    /** username */
    @Excel(name = "username")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realname;

    /** 头像 */
    @Excel(name = "头像")
    private String icon;

    /** 性别（男0/女1） */
    @Excel(name = "性别", readConverterExp = "男=0/女1")
    private Integer gender;

    /** 微信openId */
    @Excel(name = "微信openId")
    private String opneid;

    /** 备注 */
    @Excel(name = "备注")
    private String remake;

    /** 生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthday;

    /** 状态 0禁用 1启用 默认启用 */
    @Excel(name = "状态 0禁用 1启用 默认启用")
    private Integer status;

    /** 是否删除 0否1是 */
    @Excel(name = "是否删除 0否1是")
    private Integer isdelete;

    /** 名下车辆数 */
    private Integer carNum;

    /** 角色 */
    @Excel(name = "1普通用户 2管理员")
    private Integer role;

    @Override
    public String toString() {
        return "LuntaiUser{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", phone='" + phone + '\'' +
                ", nickname='" + nickname + '\'' +
                ", realname='" + realname + '\'' +
                ", icon='" + icon + '\'' +
                ", gender=" + gender +
                ", opneid='" + opneid + '\'' +
                ", remake='" + remake + '\'' +
                ", birthday=" + birthday +
                ", status=" + status +
                ", isdelete=" + isdelete +
                ", carNum=" + carNum +
                ", role=" + role +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getOpneid() {
        return opneid;
    }

    public void setOpneid(String opneid) {
        this.opneid = opneid;
    }

    public String getRemake() {
        return remake;
    }

    public void setRemake(String remake) {
        this.remake = remake;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(Integer isdelete) {
        this.isdelete = isdelete;
    }

    public Integer getCarNum() {
        return carNum;
    }

    public void setCarNum(Integer carNum) {
        this.carNum = carNum;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }
}
